//---------------------------------------------------------------------
//  This file is part of the Background Motion solution.
// 
//  Copyright (C) Mindscape (TM).  All rights reserved.
//  http://www.mindscape.co.nz
// 
//  THIS CODE AND INFORMATION ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY
//  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
//  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
//  PARTICULAR PURPOSE.
//---------------------------------------------------------------------

using System;
using System.Web.UI;

namespace Mindscape.BackgroundMotion.Website.Controls
{
  public partial class SilverlightStreaming : UserControl
  {
    public delegate void SilverlightAppSelectedDelegate(object sender, EventArgs e);
    public event SilverlightAppSelectedDelegate AppSelected;

    public string SelectedId
    {
      get
      {
        return UserId.Text;
      }
    }

    public string SelectedAppName
    {
      get
      {
        return AppName.Text;
      }
    }

    protected void SearchButton_Click(object sender, EventArgs e)
    {
      if (AppSelected != null)
        AppSelected(this, null);
    }
  }
}